﻿namespace Admin.NET.Core.Btms;

/**
 * 枚举表
 * 此枚举资料不再含有id，value，name的关系，只有code仅仅用于下拉选取的数据源显示，不能用于外键引用
 * 如果需要做外键引用，请单独开发基础资料给业务使用
 */
[SugarTable(null, "枚举表")]
public class BasEnum
{
    [SugarColumn(IsIdentity = false, ColumnDescription = "类型", IsPrimaryKey = true, Length = 128)]
    public string enumType { get; set; }

    [SugarColumn(IsIdentity = false, ColumnDescription = "值(中文,英文,数字)", IsPrimaryKey = true, Length = 256)]
    public string code { get; set; }

    [SugarColumn(ColumnDescription = "分组/逻辑/标记", Length = 256)]
    public string logic { get; set; } = "";

    [SugarColumn(ColumnDescription = "排序", Length = 128)]
    public string orderNo { get; set; } = "";

    [SugarColumn(ColumnDescription = "备注", Length = 512)]
    public string remark { get; set; } = "";

    [SugarColumn(ColumnDescription = "是否启用")]
    public bool isEnabled { get; set; }
}